package com.ruoyi.alarm.service.impl;

import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.alarm.mapper.AlarmDataMapper;
import com.ruoyi.alarm.domain.AlarmData;
import com.ruoyi.alarm.service.IAlarmDataService;

/**
 * 监测数据Service业务层处理
 * 
 * @author yepanpan
 * @date 2025-03-19
 */
@Service
public class AlarmDataServiceImpl implements IAlarmDataService 
{
    private static final Logger log = LoggerFactory.getLogger(AlarmDataServiceImpl.class);

    @Autowired
    private AlarmDataMapper alarmDataMapper;

    /**
     * 查询监测数据
     * 
     * @param id 监测数据主键
     * @return 监测数据
     */
    @Override
    public AlarmData selectAlarmDataById(Long id)
    {
        return alarmDataMapper.selectAlarmDataById(id);
    }

    /**
     * 查询监测数据列表
     * 
     * @param alarmData 监测数据
     * @return 监测数据
     */
    @Override
    public List<AlarmData> selectAlarmDataList(AlarmData alarmData)
    {
        return alarmDataMapper.selectAlarmDataList(alarmData);
    }

    /**
     * 新增监测数据
     * 
     * @param alarmData 监测数据
     * @return 结果
     */
    @Override
    public int insertAlarmData(AlarmData alarmData)
    {
        return alarmDataMapper.insertAlarmData(alarmData);
    }

    /**
     * 修改监测数据
     * 
     * @param alarmData 监测数据
     * @return 结果
     */
    @Override
    public int updateAlarmData(AlarmData alarmData)
    {
        return alarmDataMapper.updateAlarmData(alarmData);
    }

    /**
     * 批量删除监测数据
     * 
     * @param ids 需要删除的监测数据主键
     * @return 结果
     */
    @Override
    public int deleteAlarmDataByIds(Long[] ids)
    {
        return alarmDataMapper.deleteAlarmDataByIds(ids);
    }

    /**
     * 删除监测数据信息
     * 
     * @param id 监测数据主键
     * @return 结果
     */
    @Override
    public int deleteAlarmDataById(Long id)
    {
        return alarmDataMapper.deleteAlarmDataById(id);
    }


}
